package com.ddwl.schema.bo.shop;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author hemiaojun
 * @Date 2021/5/6 14:53
 */
@ApiModel("同城配送设置Bo")
@Getter
@Setter
public class LocalDeliveryBo {

    @ApiModelProperty(value="id")
    private String id;

    @NotEmpty(message = "店铺id不能为空")
    @ApiModelProperty(value="店铺id",required = true)
    private String shopId;

    @NotEmpty(message = "同城配送发货地址不能为空")
    @ApiModelProperty(value="同城配送发货地址",required = true)
    private String localAddr;

    @NotEmpty(message = "同城配送发货地址区域id不能为空")
    @ApiModelProperty(value = "同城配送发货地址区域id",required = true)
    private String localRegionId;

    @NotNull(message = "发货时间不能为空")
    @ApiModelProperty(value="发货时间（天数，几天内）",required = true)
    private Integer localSendTime;

    @ApiModelProperty(value="同城配送起送金额")
    private BigDecimal localMinAmount=BigDecimal.ZERO;

    @NotNull(message = "免费配送距离")
    @ApiModelProperty(value="免费配送距离(单位：千米)",required = true)
    private Integer freeDistance;

    @NotNull(message = "超出基础距离的配置信息不能为空")
    @ApiModelProperty(value="每满多少公里(单位：千米)",required = true)
    private Integer addDistance;

    @NotNull(message = "超出基础距离的配置信息不能为空")
    @ApiModelProperty(value="增加多少元（单位：元）",required = true)
    private BigDecimal addPrice;

    @NotNull(message = "最大距离限制不能为空")
    @ApiModelProperty(value="最大距离限制(单位：千米)",required = true)
    private Integer beyondDistance;

    @NotNull(message = "超出最大距离限制配送方式不能为空")
    @ApiModelProperty(value="超出最大距离限制配送方式：0不配送，1同城快递",required = true)
    private Integer beyondWay;

    @ApiModelProperty(value="同城快递价格（单位：元）",notes = "如果超出最大距离限制配送方式为1同城快递，则该项必填")
    private BigDecimal cityExpressPrice;

}
